package com.aat.dizena.bean;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Mapping;
import org.springframework.data.elasticsearch.annotations.Setting;

@Data
@NoArgsConstructor
@Accessors(chain = true)
@Setting(settingPath = "/json/settings/set.json")
@Mapping(mappingPath = "/json/mappings/user.json")
@Document(indexName = "es_user", type = "_doc")
public class User
{
    @Id
    private Long id;

    private String nickname;

    private String tags;

    public User(Long id, String nickname, String tags)
    {
        this.id = id;
        this.nickname = nickname;
        this.tags = tags;
    }
}
